package com.bdqn.gulimall.member.feign;

import com.bdqn.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * OrderFeignService
 * 远程调用订单服务
 * @author f
 * @since 2022/3/10
 */
@FeignClient("gulimall-order")
public interface OrderFeignService {

    /**
     * 分页查询当前登录用户的所有订单详情数据
     * @param params
     * @return
     */
    @PostMapping("/order/order/listWithItem")
    public R ListWithItem(@RequestBody Map<String, Object> params);
}
